#ifndef FORMULALISTMODEL_H
#define FORMULALISTMODEL_H

#include <QAbstractListModel>
#include <QList>
#include "ui/abstractformwidget.h"

class FormulaListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    explicit FormulaListModel(QObject *parent = 0);

    QVariant data(const QModelIndex &index, int role) const;
    int rowCount(const QModelIndex &parent) const;
    void loadForms();
    AbstractFormWidget * formWidget(const QModelIndex& index);
signals:

public slots:

private:
    QList<AbstractFormWidget*> mForms;

};

#endif // FORMULALISTMODEL_H
